<div id="main">
    {foreach from=$ranks item=category}
    <div class="section">
        <div class="title">{$category.name}</div>
        <table class="content" cellspacing="0">
            {foreach from=$category.ranks item=rank}
            <tr>
                <td><img src="{$site_root}/mods/RankSystem/default/img/{$rank.img}" alt="" /></td>
                <td><p>{$rank.name}</p>{if $rank.description ne ''}<p>{$rank.description}&nbsp;</p>{/if}</td>
            </tr>
            {/foreach}
        </table>
    </div>
    {/foreach}
</div>

